
<%@ page contentType="text/html;charset=UTF-8" language="java" %>

<%
    HttpSession session1 = request.getSession(false);
    if(session1==null || session1.getAttribute("id")==null){
        response.sendRedirect(request.getContextPath()+"/index.jsp");
    }

%>

<form action="<%=request.getContextPath()%>/function/craeteNote" method="post">
    纸条名字：<input name="note_name" type="text" placeholder="限定1-10个中文" ><br>
    纸条内容：<input name="note_content" type="text" placeholder="限定80字以内" style="width:900px;height: 200px">
    <input type="submit" value="提交数据" onclick="return judgment()">
</form>

<a href="<%=request.getContextPath()%>/function/myEnvelope">返回信封页面</a>

<style>
    body {
        background-image: url("../picture/new.jpg");
        background-repeat: no-repeat;
        background-attachment: fixed;
        background-position: center center;
        background-size: 100% 100%;
    }
</style>